import requests
import json
headers = {
    "Content-Type": "application/json; charset=UTF-8"
    }
url = "http://127.0.0.1:5000/callAlgorithm"
algorithmPara = {
            "directory": "F:\\share_to_linux\\GraphSAGE_pytorch\\graphsage-simple-master",
            "keywords": "tensor;neo4j;torch.nn",
            "prefix": "",
            "postfix": ".py",
            "additionalPara": ""
}

pyload = {
            "rootPath": "D:\\callAlgorithm\\gcn-supervised-graph-classification",
            "algorithmName": "scan_tool",
            "algorithmType": "深度学习框架有无",
            "algorithmPara": json.dumps(algorithmPara)

           }
response = requests.post(url, data=json.dumps(pyload), headers=headers).text
print(response)
# "directory": "D:\\callAlgorithm\\gcn-supervised-graph-classification",